﻿using System;
using Autofac;
using Ue.CQRS;

namespace Ue.CQRS.Samples
{
    public class ApplicationContext : AppContext
    {
        private IContainer container;

        public ApplicationContext(ContainerBuilder builder)
        {
            this.container= builder.Build();
        }

        public override T Resolve<T>()
        {
            return this.container.Resolve<T>();
        }
    }
}
